from django import forms
from django.contrib.auth.models import User

from player.models import Player

class LinkPlayerForm(forms.Form):
    
    user = forms.ModelChoiceField(label="User ", queryset=User.objects.all().order_by('username'))
    player = forms.ModelChoiceField(label="Player ", queryset=Player.objects.all().order_by('nickname'))
